<template>
    <main>
        <section class="install-hero-tv">
            <div class="container tv-banner"><img src="https://malus.s3cdn.net/uploads/tv_download.jpg"
                                                        alt="tvmalus">
                <div class="tv-jumbotron"><h3>Malus TV 版</h3>
                    <span>专为 TV 定制设计，一键加速优酷、爱奇艺、腾讯视频、Bilibili、芒果TV 等中国特色应用服务</span>
                    <div class="device-feature">
                        <div class="item"><i class="ri-check-line"></i>一键智能加速、多模式切换</div>
                        <div class="item"><i class="ri-check-line"></i>操作简便，支持原生系统开机启动</div>
                        <div class="item"><i class="ri-check-line"></i>精选全球专线服务器，高清不卡顿</div>
                    </div>
                    <div class="btn-tv-group"><a
                        href="https://play.google.com/store/apps/details?id=com.getmalus.malus.tv"
                        event="Download TV Play" target="_blank"><img src="../assets/google-play-badge.58f4b.png"
                                                                      alt="google-play-badge"></a><a
                        href="/r/androidtv-dangbei" event="Download TV Play" target="_blank"><img
                        src="https://malus.s3cdn.net/uploads/bangbeitvdownload.png" alt="dangbei-play-badge"></a><a
                        class="double-redirect tv-apk" event="Download TV APK"
                        href="/download-start?tv=1&amp;dlu=/r/androidtv" data-href="/download-start?tv=1"><i
                        class="ri-android-fill"></i> 下载到本地 </a><a class="malus-support-btn"
                                                                         href="/r/support-apps"></a></div>
                </div>
            </div>
            <a href="/changelog/tv" class="tv-changelog malus-container">
                <div class="app-changelog">
                    <div class="changelog-time"><span>2021-1-28</span> <small>最新版本 V4.1.0</small></div>
                    <p class="changelog-type">新增</p> <span class="changelog-content">新增网络检测</span>
                    <p class="changelog-type">修复</p> <span class="changelog-content">修复已知 bug</span></div>
            </a>
            <div class="tv-tips container">
                <div class="tv-compati tips-grid">
                    <div class="tips-title"><i class="ri-list-settings-line"></i> <span>兼容提示</span></div>
                    <div class="tips-content"><p>因Android TV固件版本各异，Malus 无法运行在无VPN组件的系统上。我们首推您使用原生的 Android 系统安装，目前
                        Malus 已可以在大部分设备上运行，你可点击下方链接，查看详细兼容列表</p><a href="/r/tv-device" target="_blank">查看支持设备列表</a>
                    </div>
                </div>
                <div class="tv-install tips-grid">
                    <div class="tips-title"><i class="ri-settings-2-line"></i> <span>安装方法</span></div>
                    <div class="tips-content"><p>方法1：如果您的设备安装了 Google play 商店，只需要在 Google 商店搜索 Malus 安装即可</p>
                        <p>方法2：通过U盘安装，将下载到本地的APK文件，复制到U盘，根据您设备的本地安装说明完成安装。 <a href="/r/tv-apk"
                                                                              target="_blank">U盘安装方法</a></p></div>
                </div>
            </div>
        </section>

        <Features></Features>

        <user-comment></user-comment>
    </main>
</template>

<script>
import Features from "@/components/Features";
import UserComment from "@/components/UserComment";
export default {
    name: "Tv",
    components: {UserComment, Features}
}
</script>

<style scoped lang="scss">
    main {
        .install-hero-tv {
            height: auto;
            background: url(../assets/tv_banner.d12f6.jpg) no-repeat;
            background-size: cover;
            .tv-banner {
                padding-top: 120px;
                display: flex;
                align-items: center;
                img {
                    width: 490px;
                    height: 100%;
                }
                .tv-jumbotron {
                    margin-top: -24px;
                    margin-left: 96px;
                    h3 {
                        font-size: 48px;
                        font-weight: 400;
                    }
                    span {
                        font-size: 13px;
                        line-height: 1.5;
                        color: #7b7b7b;
                        display: block;
                        margin-top: 12px;
                    }
                    .device-feature {
                        margin-top: 28px;
                        display: inline-flex;
                        flex-direction: column;
                        .item {
                            font-size: 15px;
                            padding-bottom: 10px;
                            margin-bottom: 10px;
                            color: #444;
                            display: inline-flex;
                            align-items: center;
                            border-bottom: 1px solid #f5f5f5;
                            i {
                                color: #4D55E8;
                                font-size: 18px;
                                margin-right: 16px;
                            }
                        }
                    }
                    .btn-tv-group {
                        margin-top: 24px;
                        display: flex;
                        align-items: center;
                        a {
                            transition: all .2s ease;
                            display: flex;
                            align-items: center;
                            img {
                                width: 170px;
                                height: auto;
                                margin-right: 20px;
                            }
                        }
                    }
                    .tv-apk {
                        height: 52px;
                        width: 180px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        color: #fff;
                        font-size: 15px;
                        font-weight: 500;
                        background: #4d55e8;
                        border-radius: 4px;
                    }
                }
            }
            .tv-changelog {
                margin-top: 80px;
                display: flex;
                padding-left: 48px;
                background: #fbfbff;
                height: 38px;
                align-items: center;
                .app-changelog {
                    display: flex;
                    align-items: center;
                    overflow: hidden;
                    width: 100%;
                    height: 30px;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    .changelog-time {
                        span {
                            display: none;
                        }
                        small {
                            padding: 5px 12px 4px;
                            background: #f3f2ff;
                            color: #4d55e8;
                            border-radius: 20px;
                            font-size: 12px;
                            margin-right: 12px;
                        }
                    }
                    .changelog-type {
                        display: none;
                    }
                    .changelog-content {
                        margin: 0!important;
                        padding-top: 1px;
                        font-size: 12px!important;
                        color: #7b7b7b;
                        padding-left: 12px;
                        padding-right: 12px;
                        border-right: 1px solid #e8e7f8;
                    }
                    p {
                        display: none;
                    }
                    span:last-child {
                        border-right: none;
                    }
                }
            }

            .tv-tips {
                margin-top: 98px!important;
                display: flex;
                .tips-grid {
                    border: 2px solid #f0f1ff;
                    padding: 40px;
                    width: 50%;
                    .tips-title {
                        display: flex;
                        align-items: center;
                        margin-bottom: 24px;
                        i {
                            font-size: 24px;
                            margin-right: 6px;
                            color: #ff960c;
                        }
                        span {
                            font-size: 18px;
                            font-weight: 500;
                        }
                    }
                    .tips-content {
                        p {
                            font-size: 14px;
                            color: #333;
                            line-height: 1.6;
                            margin-bottom: 24px;
                        }
                        a {
                            font-size: 14px!important;
                            color: #4d55e8;
                        }
                    }
                }
            }
        }
    }
</style>
